package com.lbc.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author xyl
 * @date 2021-03-25 14:52
 */
@Data
public class KidDTO {

    @ApiModelProperty(value = "图片",required = true)
    private String kidPicture;

    @NotBlank(message = "姓名不能为空!")
    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @NotBlank(message = "性别不能为空!")
    @ApiModelProperty(value = "性别", required = true)
    private String sex;

    @JsonFormat(pattern = "yyyy/MM/dd")
    @NotNull(message = "出生日期不能为空!")
    @ApiModelProperty(value = "出生日期", required = true)
    private Date birth;

    @NotBlank(message = "家庭住址不能为空!")
    @ApiModelProperty(value = "家庭住址", required = true)
    private String address;

    @NotBlank(message = "详情不能为空!")
    @ApiModelProperty(value = "详情", required = true)
    private String introduce;

    @ApiModelProperty(value = "身体状况")
    private String physicalCondition;

    @ApiModelProperty(value = "学习状况")
    private String studyCondition;

    @Email(message = "邮箱有误!")
    @NotNull(message = "对应父母Id的邮箱 , 默认添加账号,不能为空!")
    @ApiModelProperty(value = "对应父母邮箱")
    private String parentEmail;
    @ApiModelProperty(value = "父母姓名")
    private String parentName;

    private String parentPhoneNumber;

    @ApiModelProperty(value = "对应组织机构ids")
    private List<Integer> orgIds;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "学校id")
    private Integer schoolId;

    @ApiModelProperty(value = "身份证")
    private String idCard;

    @ApiModelProperty(value = "民族")
    private String nation;
}
